import QtQuick 2.0

Rectangle {
    width: 360; height: 240
    color: "#eeeeee"
    id: rootItem

    Rectangle{
        id: rect
        width: 50; height: 150
        anchors.centerIn: parent
        color: "blue"

        MouseArea{
            anchors.fill: parent
            id: mouseArea
        }

        PropertyAnimation on width {
            to: 150
            duration: 1000
            running: mouseArea.pressed
        }
    }
}

